package com.aptech.bank.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Ept entity. @author MyEclipse Persistence Tools
 */

public class Ept implements java.io.Serializable {

	// Fields

	private Integer id;
	private EptType eptType;
	private Bank bank;
	private String eachId;
	private Double price;
	private Date buydate;
	private String status;
	private Double depreciation;
	private Set<EptMaintain> eptMaintains = new HashSet<EptMaintain>(0);
	private Set<EptRepair> eptRepairs = new HashSet<EptRepair>(0);

	// Constructors

	/** default constructor */
	public Ept() {
	}

	/** minimal constructor */
	public Ept(Bank bank, String eachId, Double price, Date buydate,
			String status, Double depreciation) {
		this.bank = bank;
		this.eachId = eachId;
		this.price = price;
		this.buydate = buydate;
		this.status = status;
		this.depreciation = depreciation;
	}

	/** full constructor */
	public Ept(EptType eptType, Bank bank, String eachId, Double price,
			Date buydate, String status, Double depreciation, Set<EptMaintain> eptMaintains,
			Set<EptRepair> eptRepairs) {
		this.eptType = eptType;
		this.bank = bank;
		this.eachId = eachId;
		this.price = price;
		this.buydate = buydate;
		this.status = status;
		this.depreciation = depreciation;
		this.eptMaintains = eptMaintains;
		this.eptRepairs = eptRepairs;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public EptType getEptType() {
		return this.eptType;
	}

	public void setEptType(EptType eptType) {
		this.eptType = eptType;
	}

	public Bank getBank() {
		return this.bank;
	}

	public void setBank(Bank bank) {
		this.bank = bank;
	}

	public String getEachId() {
		return this.eachId;
	}

	public void setEachId(String eachId) {
		this.eachId = eachId;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Date getBuydate() {
		return this.buydate;
	}

	public void setBuydate(Date buydate) {
		this.buydate = buydate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Double getDepreciation() {
		return this.depreciation;
	}

	public void setDepreciation(Double depreciation) {
		this.depreciation = depreciation;
	}

	public Set<EptMaintain> getEptMaintains() {
		return this.eptMaintains;
	}

	public void setEptMaintains(Set<EptMaintain> eptMaintains) {
		this.eptMaintains = eptMaintains;
	}

	public Set<EptRepair> getEptRepairs() {
		return this.eptRepairs;
	}

	public void setEptRepairs(Set<EptRepair> eptRepairs) {
		this.eptRepairs = eptRepairs;
	}

}